<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'

onLaunch(() => {
  console.log('App Launch')
})
onShow(() => {
  console.log('App Show')
})
onHide(() => {
  console.log('App Hide')
})
</script>

<style lang="scss">
// 字体图标
@import '@/styles/fonts.scss';

view,
navigator,
input,
scroll-view {
  box-sizing: border-box;
}

button::after {
  border: none;
}

swiper,
scroll-view {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.scan_image {
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

// 两行省略
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.scan {
  width: 160rpx;
  height: 160rpx;
  position: absolute;
  left: 50%;
  margin-left: -80rpx;
  bottom: 10rpx;
  z-index: 10;
}
// 加载提示文字
.loading-text {
  text-align: center;
  font-size: 28rpx;
  color: #666;
  padding: 20rpx 0;
}

.uni-forms-item__content {
  display: flex;
  .label {
    width: 90px;
    color: #333;
    height: 37px;
    display: flex;
    align-items: center;
  }
  input {
    border:1px solid #efefef;
    width: calc(100% - 90px);
    max-width: 100%;
    height: 35px;
    border-radius: 5px;
    padding-left: 10px;
  }
  textarea {
    border:1px solid #efefef;
    width: calc(100% - 90px);
    border-radius: 5px;
    padding: 10px;
  }
  .phone_input {
    width: calc(100% - 230px);
  }
  .send {
    width: 130px;
    height: 35px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #27ba9b;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
  }
  picker {
    display: flex;
    border:1px solid #efefef;
    width: calc(100% - 92px);
    align-items: center;
    max-width: 100%;
    height: 35px;
    border-radius: 5px;
    padding-left: 10px;
  }
}
.uni-forms-item__error {
  margin-left: 180rpx;
}

.company_img {
  position: relative;
  image {
    width: 300rpx;
    height: 200rpx;
    border-radius: 10px;
  }
}
.upload {
  image {
    width: 300rpx;
    height: 200rpx;
    border-radius: 10px;
  }
}

.form {
  background-color: #f4f4f4;
  height: 100vh;
  padding-top: 10rpx;
  padding-bottom: 60rpx;

  &-content {
    margin: 20rpx 20rpx 0;
    padding: 0 20rpx;
    border-radius: 10rpx;
    background-color: #fff;
    overflow: hidden;
  }

  &-item {
    display: flex;
    min-height: 96rpx;
    line-height: 46rpx;
    padding: 25rpx 10rpx;
    background-color: #fff;
    font-size: 28rpx;

    .label {
      width: 180rpx;
      color: #333;
    }

    &:last-child {
      border: none;
    }
    .no_info {
      color: #999;
    }
    .account {
      color: #666;
    }

    .input {
      flex: 1;
      display: block;
      height: 46rpx;
    }

    .radio {
      margin-right: 20rpx;
    }

    .picker {
      flex: 1;
    }
    .placeholder {
      color: #808080;
    }
    .code {
      color: #27ba9b;
      font-size: 28rpx;
    }
    .send {
      color: #999;
    }
  }
  .image_upload {
    height: auto;
  }
  &-button {
    height: 80rpx;
    text-align: center;
    line-height: 80rpx;
    margin: 30rpx 20rpx;
    color: #fff;
    border-radius: 80rpx;
    font-size: 30rpx;
    background-color: #27ba9b;
  }
  .tongyi {
    display: flex;
    height: 96rpx;
    line-height: 46rpx;
    padding: 25rpx 10rpx 25rpx 50rpx;
    font-size: 28rpx;
  }
}
.form .uni-section .uni-section-header {
  padding: 12px 0 20px;
}

.upload {
  width: 300rpx;
  height: 200rpx;
  border: 1px solid #ddd;
  border-radius: 10rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10rpx;
}

</style>
